# 
# Created with PyCharm.
# Description :
# User: jiume
# Date: 2024-12-14
# Time: 20:35
#
def km_to_mile(km):
    """
    将公里转换为英里
    """
    return km / 1.609344

def mile_to_km(mile):
    """
    将英里转换为公里
    """
    return mile * 1.609344

# 示例：将10公里转换为英里
km_value = 10
mile_result = km_to_mile(km_value)
print(f"{km_value}公里等于{mile_result}英里")

# 示例：将5英里转换为公里
mile_value = 5
km_result = mile_to_km(mile_value)
print(f"{mile_value}英里等于{km_result}公里")